package net.lsr.demo.domain.mapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import net.lsr.demo.domain.Qrcode;

import org.springframework.jdbc.core.RowMapper;

/**
 * desc: 二维码mapper
 * @author lsr
 * @version 2014年6月4日
 */
public class QrcodeMapper implements RowMapper<Qrcode>{

	@Override
	public Qrcode mapRow(ResultSet rs, int rowNum) throws SQLException {
		Qrcode q = new Qrcode();
		q.setId(rs.getString("id"));
		q.setDay(rs.getString("day"));
		q.setFilePath(rs.getString("filePath"));
		q.setGenerateDate(rs.getTimestamp("generateDate"));
		return q;
	}

}
